package com.offcn.converter;

import java.util.Scanner;

/**
 * @ClassName: ScannerModel
 * @Description: 输入测试
 * @Date: 2020/8/11 11:39
 * @Author: 张统
 */
public class ScannerModel {
    public static void main(String[] args) {

        for (;;){
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入学生姓名");
            String name = sc.nextLine();
            System.out.println("请输入学生年龄");
            int age = sc.nextInt();
            System.out.println(name+"+"+age);
        }


        /*String s1,s2;
        Scanner sc1=new Scanner(System.in);
        System.out.print("请输入第一个字符串：");
        s2=sc1.next();
        System.out.print("请输入第二个字符串：");

        s1=sc1.nextLine();
        System.out.println("输入的字符串是："+s2+" "+s1);*/
    }

}
